
<div id="body_title">

</div>
<div id="body_detail">
    <h1>Album ảnh</h1>
    <div id="body_detail_content">


    <br />
<?php
    if ($albums == null || count($albums) == 0){
     echo "<div style='position:relative; left:310px;'><font color=blue>Chưa có album nào</font></div><br />";
    }
?>

    <table>
        <tr>
        <?php $i = 0; foreach ($albums as $album){?>

            <td align="center" style="font-weight:bold;" width="150px">
                <a style="color:#a52a2a;" href='<?php echo Utility::getSiteUrl(); ?>/imagealbum/detail/<?php echo
                $album->id; ?>'>
                    <?php echo $album->name; ?>
                </a>
                <br />
                <a href='<?php echo Utility::getSiteUrl(); ?>/imagealbum/detail/<?php echo $album->id; ?>'>
                    <img src='<?php echo Utility::websiteRoot(); ?>/public/images/<?php echo (isset($album->thumbnail))?$album->thumbnail:"default.png"; ?>' alt='<?php echo $album->description; ?>' title='<?php echo $album->description; ?>' />
                </a>
                <br /><br />
            </td>

        <?php
                $i++;
                if ($i%6 == 0)
                echo '</tr><tr>';
        } ?>
    </table>

    </div>
</div>
<div id="body_foot">
    <div id="previous">
        <a href="#">Previous</a>
    </div>
    <div id="next">
        <a href="#">Next</a>
    </div>
</div>